'''
Created on 2009-03-04

@author: belleyma
'''
from xml.dom.minidom import *
from xml.dom  import DOMException

class XMLRules(object):
    '''
    classdocs
    '''

    def openXML(self, xmlpath):
        if (xmlpath):
            try:
                self.xml = parse(xmlpath)
            except (DOMException):
                print("Oops!  Error opening xml file...")

         
    def __init__(self, xmlpath):
        '''
        Constructor
        '''
        assert(xmlpath != "")
        openXML(self, xmlpath)
       